# coding=utf-8
try:
    import cmemcached
except ImportError:
    import memcache as cmemcached

class Client:
    def __init__(self,conf):
        conf_list = [conf]
        self.mc = cmemcached.Client(conf_list)

    def set(self,key,value):
        return self.mc.set(key,value)

    def get(self,key):
        return self.mc.get(key)

    def incr(self,key):
        return self.mc.incr(key)

    def decr(self,key):
        return self.mc.decr(key)
